
export const windowInfo = wx.getWindowInfo();
const statusBarHeight = windowInfo.statusBarHeight;
export const deviceInfo = wx.getDeviceInfo();
export const android = !!(deviceInfo.system?.toLowerCase().search('android') + 1);
export const headHeight = statusBarHeight + (android ? 48 : 44);
export const setPageStyle = () => {
  wx.setPageStyle({
    style: {
      cssText: `--head-height: ${headHeight}px`,
    },
    success: () => console.log(`--head-height: ${headHeight}px`),
    fail: console.error,
  });
}


